home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / FlashGauntlet.swf / scripts / DefineButton2_105 / BUTTONCONDACTION on(release, keyPress p).as < prev   
Encoding:
Text File  |  2001-07-14  |  650 b   |  35 lines

  1. on(release, keyPress "p"){
  2.    if(0 < _root.potions)
  3.    {
  4.       _root.potions -= 1;
  5.       with(_root.screenflash)
  6.       {
  7.          gotoAndPlay(2);
  8.       }
  9.       i = 1;
  10.       while(i < 200)
  11.       {
  12.          removeMovieClip(_root["enemy" + i]);
  13.          i += 1;
  14.       }
  15.       i = 1;
  16.       while(i < 200)
  17.       {
  18.          removeMovieClip(_root["enemyb" + i]);
  19.          i += 1;
  20.       }
  21.       i = 1;
  22.       while(i < 200)
  23.       {
  24.          removeMovieClip(_root["enemyc" + i]);
  25.          i += 1;
  26.       }
  27.       i = 1;
  28.       while(i < 200)
  29.       {
  30.          removeMovieClip(_root["enemyd" + i]);
  31.          i += 1;
  32.       }
  33.    }
  34. }
  35.